home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 2
/
The Arsenal Files 2 (Arsenal Computer).ISO
/
wildcat
/
cdmove.wcc
< prev
next >
Wrap
Text File
|
1994-08-15
|
1KB
|
46 lines
rem moves files that are in the database from a given cd rom drive
rem to the file area directory on disk
rem brad shipp, brad.shipp@chowda.com, 1:323/120@fidonet.org
rem variable declarations
dim filerec as FileRecord
dim arearec as FileAreaRecord
dim filepath as string*79
dim commandLine as string*79
rem Drive letter of cdrom drive
const CDROMDrive = "Y"
rem set pointer to beginning of file database and get first one
getFileInfo(fileRec,"")
do
if left(fileRec.storedPath,1)=CDROMDrive then
rem fetch full path to file
filepath=filerec.storedpath+filerec.name
rem get file area storage path
getFileArea(arearec,filerec.area)
rem make commandline for copy
commandLine="COPY "+filepath+" "+left(trim(arearec.path),len(trim(arearec.path))-1)
print commandLine
rem do it
shell commandLine
rem clear cd rom flag
filerec.flags=filerec.flags-16
filerec.storedpath=""
updateFile(filerec)
end if
rem keep going until we get to the end of the file
rem or until operator presses a key
loop while getNextFile(filerec) and inkey()<>" "